package edu.ccut.saturn.studio.naviagtor.tester;

import org.eclipse.core.expressions.PropertyTester;
import org.eclipse.core.resources.IFile;

public class SaturnDataTester extends PropertyTester {

	public boolean test(Object receiver, String property, Object[] args,
			Object expectedValue) {
		
		if ("filesuffix".equalsIgnoreCase(property) && null != receiver
				&& receiver instanceof IFile) {

			IFile resource = (IFile) receiver;
			return resource.getName().endsWith("saturndata");
		}
		
		return false;
	}
}
